package com.johann.aboutdate;

import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Scanner;
import java.util.concurrent.locks.ReentrantLock;


public class TFms2Date {
    public static void main(String[] args) {
        new ReentrantLock();
        Scanner scanner = new Scanner(System.in);
        long l = scanner.nextLong();
        Date date =new Date();
        date.setTime(l);
        System.out.println(new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(date));
    }
}
